package cn.lds.j368.dsbank.service;

import cn.lds.j368.dsbank.domain.Customer;
import cn.lds.j368.dsbank.dto.RespDTO;
import cn.lds.j368.dsbank.exception.ServiceException;

import java.util.List;

public interface CustomerService {

    /**
     * 根据添加员工id查询该员工添加的客户信息
     * @param empId
     * @return
     */
   RespDTO<List<Customer>> selectCustomerAllByCreateEmpId(Integer empId) throws ServiceException;

   RespDTO<Customer> selectCustomerByCustomerId(Long customerId) throws ServiceException;

   //根据身份证号码查询
   RespDTO<Customer> selectCustomerByCertificateNo(String certificateNo);

   RespDTO addCustomer(Customer customer) throws ServiceException;

   RespDTO updateCustomer(Customer customer) throws ServiceException;

   RespDTO delCustomerByCustomerId(Integer customerId) throws ServiceException;
}
